package cn.tedu.lucky.draw.server.job.processor;

import cn.tedu.lucky.draw.server.common.enums.DrawEnum;
import cn.tedu.lucky.draw.server.protocol.po.Activity;
import org.springframework.batch.item.ItemProcessor;

public class ActivityProcessor implements ItemProcessor<Activity,Activity> {
    @Override
    public Activity process(Activity activity) throws Exception {
        //activity 代表当前活动时间已经结束的活动
        activity.setStatus(Integer.valueOf(DrawEnum.END.getCode()));
        return activity;
    }
}
